Namespace - LJCTextDataReaderLib
Parameters
fileName - The delimited text file name.
fieldDelimiter - The field delimiter.
Syntax
C# |
public Void LJCSetFile(String fileName, Char fieldDelimiter = ,)
|
Sets the source text file values.
(E)
Example
C# |
using LJCTextDataReaderLib;
TextDataReader textReader = new TextDataReader();
textReader.LJCSetFile("InputFileSpec.txt");
while(textReader.Read())
{
for int index = 0; index < textReader.FieldCount; index++)
{
string data = textReader.GetString(index);
}
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.